const readline = require('readline')


//获取用户输入
exports.getUserInput = async (title)=>{
	return new Promise( (resolve) => {
		const read = readline.createInterface({
		  input: process.stdin,
		  output: process.stdout
		})
		read.question(title, name => {
			resolve(name)
			read.close()
		})
	})
}